﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace MonitorAgent
{

   class DiskUsage
   {
      static List<string> getDiskUsage()
      {
         DriveInfo[] drives = DriveInfo.GetDrives();

         List<string> localDrives = new List<string>();

         foreach (DriveInfo d in drives)
         {
            
            if (d.DriveType == DriveType.Fixed)
            {
               string message = string.Format("name %s,free %l,size %l",
                  d.Name, d.TotalFreeSpace, d.TotalSize);

               localDrives.Add(message);
            }
         }

         return localDrives;
      }
   }
}
